<script setup>
import { ref, computed } from 'vue'
const props = defineProps({
  iconName: {
    type: String,
    default: ''
  },
  className: {
    type: String,
    default: ''
  }
})
const svgIcon = computed(() => `#icon-${props.iconName}`)
const svgClassName = ref(props.className)
</script>
<template>
  <svg class="svg-class" :class="svgClassName">
    <use :href="svgIcon"></use>
  </svg>
</template>
<style lang="scss">
.svg-class {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>
